<link rel="stylesheet" href="lib/codemirror/4.1/lib/codemirror.css">
<link rel="stylesheet" href="app/system/css/system.css"/>
<div class="sql_main">
    <div class="row col-sm-12 sql_top">
        <textarea id="sql_editor" name="sql_editor"></textarea>
    </div>
    <div class="row col-sm-12 sql_middle">
        <input type="button" class="btn btn-primary" ng-class="{'btn-primary':!running, 'btn-default':running}" ng-disabled="running" value="执行" ng-click="run()"/>
    </div>
    <div class="row col-sm-12 sql_bottom">
        <textarea id="sql_result" ng-model="sql_result" class="sql_result" readonly="readonly" ng-class="{'sql_result_err': !runSuccess}"></textarea>
    </div>
</div>